import request from '@/utils/request'

// 查询物流轨迹列表
export function listTrack(query) {
  return request({
    url: '/loginfo/track/list',
    method: 'get',
    params: query
  })
}

// 查询物流轨迹详细
export function getTrack(id) {
  return request({
    url: '/loginfo/track/' + id,
    method: 'get'
  })
}

// 新增物流轨迹
export function addTrack(data) {
  return request({
    url: '/loginfo/track',
    method: 'post',
    data: data
  })
}

// 修改物流轨迹
export function updateTrack(data) {
  return request({
    url: '/loginfo/track',
    method: 'put',
    data: data
  })
}

// 删除物流轨迹
export function delTrack(id) {
  return request({
    url: '/loginfo/track/' + id,
    method: 'delete'
  })
}
